package testing;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class WriteToFile {
	public static void main (String[] args){
		WriteToFile w = new WriteToFile();
		File filename = new File("C:" + File.separator + "Users"
   				+ File.separator + "Bhavya" + File.separator + "Desktop"
   				+ File.separator + "java_for_cloudcomputing" + File.separator
   				+ "java_code" + File.separator + "ObtainedSample.txt.txt");
		w.Write(filename);
	}
	public void Write(File filename){
		PrintWriter pw = null ;
		try {
			pw = new PrintWriter(filename);
			pw.print("Garbage123");
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		pw.close();
		
	}

}
